package com.yft.util;

import org.apache.commons.lang.StringUtils;

public class ArrayUtils {

	public static String toSqlString(String[] args){
		String rst = "";
		
		for (String v : args){
			rst += "'"+v+"',";
		}
		
		return StringUtils.substringBeforeLast(rst,",");
	}
	public static String toSqlString(Integer[] args){
		String rst = "";
		
		for (Integer v : args){
			rst += ""+v+",";
		}
		
		return StringUtils.substringBeforeLast(rst,",");
	}
}
